<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateQaecmsAnnexesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qaecms_annexes', function (Blueprint $table) {
            $table->increments('id')->comment('附件id');
            $table->string('title')->comment('附件标题');
            $table->string('type')->comment('附件分类');
            $table->string('suffix')->comment('附件文件类型');
            $table->longText('content')->comment('附件地址');
            $table->dateTime('deleted_at')->comment('软删除时间')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qaecms_annexes');
    }
}
